finished custom variables and created maain methods