border functionality added